<?php //feed.php?city=shenzhen&cats=play
/*
Coder: NetPuter
Description: RSS Feed
*/
include("func.php");
$catsArr = array("all", "eat", "play", "beauty", "sports", "person", "other");

if (isset($_GET["city"])) {
	$city = $_GET["city"];
	if (isset($_GET["cats"])) {
		$cats = in_array(strtolower($_GET["cats"]), $catsArr) ? $_GET["cats"] : "all";
	} else {
		$cats = "all";
	}
	
	if (file_exists(ABSPATH."feed/{$rss}_{$cats}.rss")) {
		$output = file_get_contents(ABSPATH."feed/{$rss}_{$cats}.rss");
	} else {
		// 输出某个空白 Feed
	}
} else {
	// 转至 subscribe.php
}
?>